<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>module-bbswitch</Name>
        <Homepage>https://github.com/Bumblebee-Project/bbswitch</Homepage>
        <Packager>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Packager>
        <License>GPL</License>
        <IsA>app:gui</IsA>
        <Summary>Kernel module allowing to switch dedicated graphics card on Optimus laptops</Summary>
        <Description>kernel module allowing to switch dedicated graphics card on Optimus laptops</Description>
        <BuildDependencies>
            <Dependency version="5.15.96">kernel-module-headers</Dependency>
        </BuildDependencies>
        <Archive sha1sum="e282ee682d794e3962baa4dead01917c42571e78" type="targz">https://github.com/Bumblebee-Project/bbswitch/archive/v0.8.tar.gz</Archive>
        <Patches>
            <Patch level="1">0001-proc_ops-struct.patch</Patch>
            <Patch level="1">0002-kernel-5.7.patch</Patch>
        </Patches>
    </Source>
    <Package>
        <Name>module-bbswitch</Name>
        <RuntimeDependencies>
            <Dependency version="5.15.96">kernel</Dependency>
            <Dependency release="current">bbswitch-common</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/lib/modules</Path>
        </Files>
        <Conflicts>
            <Package>bbswitch-dkms</Package>
        </Conflicts>
    </Package>

    <Package>
        <Name>bbswitch-common</Name>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/etc/modprobe.d/bbswitch.conf">bbswitch.conf</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/debmod.d/kmod-bbswitch.conf">kmod-bbswitch.conf</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <Package>
        <Name>bbswitch-dkms</Name>
        <RuntimeDependencies>
            <Dependency release="current">bbswitch-common</Dependency>
            <Dependency>dkms</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="data">/usr/src/bbswitch*</Path>
        </Files>
        <Conflicts>
            <Package>module-bbswitch</Package>
        </Conflicts>
    </Package>

    <History>
        <Update release="74">
            <Date>2023-03-02</Date>
            <Version>0.8</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="73">
            <Date>2023-01-28</Date>
            <Version>0.8</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="72">
            <Date>2023-01-03</Date>
            <Version>0.8</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="71">
            <Date>2022-12-07</Date>
            <Version>0.8</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="70">
            <Date>2022-10-22</Date>
            <Version>0.8</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="69">
            <Date>2022-09-12</Date>
            <Version>0.8</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="68">
            <Date>2022-08-17</Date>
            <Version>0.8</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="67">
            <Date>2022-07-21</Date>
            <Version>0.8</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="66">
            <Date>2022-06-25</Date>
            <Version>0.8</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="65">
            <Date>2022-05-22</Date>
            <Version>0.8</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="64">
            <Date>2022-05-05</Date>
            <Version>0.8</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="63">
            <Date>2022-04-13</Date>
            <Version>0.8</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="62">
            <Date>2022-03-22</Date>
            <Version>0.8</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="61">
            <Date>2022-01-31</Date>
            <Version>0.8</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="60">
            <Date>2022-01-15</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="59">
            <Date>2021-12-17</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="58">
            <Date>2021-11-27</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="57">
            <Date>2021-11-19</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="56">
            <Date>2021-11-10</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>İdris Kalp</Name>
            <Email>idriskalp@gmail.com</Email>
        </Update>
        <Update release="55">
            <Date>2021-11-08</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="54">
            <Date>2021-09-30</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="53">
            <Date>2021-09-10</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="52">
            <Date>2021-08-13</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="51">
            <Date>2021-07-15</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="50">
            <Date>2021-06-19</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="49">
            <Date>2021-06-02</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>idris Kalp</Name>
            <Email>idriskalp@gmail.com</Email>
        </Update>
        <Update release="48">
            <Date>2021-05-22</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="47">
            <Date>2021-05-14</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="46">
            <Date>2021-04-29</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="45">
            <Date>2021-04-14</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="44">
            <Date>2021-03-12</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="43">
            <Date>2021-03-01</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="42">
            <Date>2021-02-11</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="41">
            <Date>2021-01-29</Date>
            <Version>0.8</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="40">
            <Date>2021-01-06</Date>
            <Version>0.8</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="39">
            <Date>2020-12-27</Date>
            <Version>0.8</Version>
            <Comment>Version bump.</Comment>
            <Name>İdris Kalp</Name>
            <Email>idriskalp@gmail.com</Email>
        </Update>
        <Update release="38">
            <Date>2020-12-15</Date>
            <Version>0.8</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="37">
            <Date>2020-09-15</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="36">
            <Date>2020-09-15</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="35">
            <Date>2020-08-05</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>İdris Kalp</Name>
            <Email>idriskalp@gmail.com</Email>
        </Update>
        <Update release="34">
            <Date>2020-06-17</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>İdris Kalp</Name>
            <Email>idriskalp@gmail.com</Email>
        </Update>
        <Update release="33">
            <Date>2020-05-29</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>İdris Kalp</Name>
            <Email>idriskalp@gmail.com</Email>
        </Update>
        <Update release="32">
            <Date>2020-05-04</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>İdris Kalp</Name>
            <Email>idriskalp@gmail.com</Email>
        </Update>
        <Update release="31">
            <Date>2020-04-13</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>İdris Kalp</Name>
            <Email>idriskalp@gmail.com</Email>
        </Update>
        <Update release="30">
            <Date>2020-04-03</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="29">
            <Date>2020-02-13</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="28">
            <Date>2020-01-30</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="27">
            <Date>2020-01-12</Date>
            <Version>0.8</Version>
            <Comment>Add dkms support</Comment>
            <Name>Marcin Bojara</Name>
            <Email>marcin.bojara@gmail.com</Email>
        </Update>
        <Update release="26">
            <Date>2019-06-26</Date>
            <Version>0.8</Version>
            <Comment>Rebuild.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="25">
            <Date>2019-05-11</Date>
            <Version>0.8</Version>
            <Comment>Rebuild.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="24">
            <Date>2019-04-06</Date>
            <Version>0.8</Version>
            <Comment>Rebuild.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="23">
            <Date>2019-01-20</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="22">
            <Date>2018-12-22</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="21">
            <Date>2018-10-05</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="20">
            <Date>2018-07-07</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="19">
            <Date>2018-07-15</Date>
            <Version>0.8</Version>
            <Comment>Rebuild</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="18">
            <Date>2018-07-12</Date>
            <Version>0.8</Version>
            <Comment>Version bump</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="17">
            <Date>2018-04-28</Date>
            <Version>0.8</Version>
            <Comment>Version bump</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="16">
            <Date>2018-03-11</Date>
            <Version>0.8</Version>
            <Comment>Rebuild for new kernel.</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="15">
            <Date>2018-03-03</Date>
            <Version>0.8</Version>
            <Comment>Rebuild for new kernel</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="14">
            <Date>2018-01-06</Date>
            <Version>0.8</Version>
            <Comment>Rebuild for new kernel</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="13">
            <Date>2017-12-20</Date>
            <Version>0.8</Version>
            <Comment>Rebuild for new kernel</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="12">
            <Date>2017-12-04</Date>
            <Version>0.8</Version>
            <Comment>Rebuild for new kernel</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="11">
            <Date>2017-11-19</Date>
            <Version>0.8</Version>
            <Comment>Rebuild for new kernel</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="10">
            <Date>2017-08-21</Date>
            <Version>0.8</Version>
            <Comment>Rebuild for new kernel.</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="9">
            <Date>2017-07-04</Date>
            <Version>0.8</Version>
            <Comment>Rebuild for new kernel.</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="8">
            <Date>2017-02-01</Date>
            <Version>0.8</Version>
            <Comment>Rebuild for new kernel.</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="7">
            <Date>2016-12-10</Date>
            <Version>0.8</Version>
            <Comment>Rebuild for new kernel.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="6">
            <Date>2016-11-02</Date>
            <Version>0.8</Version>
            <Comment>Rebuild for new kernel.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="5">
            <Date>2016-08-24</Date>
            <Version>0.8</Version>
            <Comment>Rebuild for new kernel.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="4">
            <Date>2016-08-06</Date>
            <Version>0.8</Version>
            <Comment>Rebuild for new kernel.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-28</Date>
            <Version>0.8</Version>
            <Comment>Release Bump</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-04-30</Date>
            <Version>0.8</Version>
            <Comment>Release Bump</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-03-07</Date>
            <Version>0.8</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>
